package cn.ibizlab.odoo.core.odoo_mail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mail.domain.Mail_mail_statistics;
import cn.ibizlab.odoo.core.odoo_mail.filter.Mail_mail_statisticsSearchContext;

/**
 * 实体[Mail_mail_statistics] 服务对象接口
 */

public interface IMail_mail_statisticsService{
     boolean update(Mail_mail_statistics mail_mail_statistics) ;
     Mail_mail_statistics get(Integer id) ;
     Mail_mail_statistics get(Mail_mail_statistics mail_mail_statistics) ;
     void updateBatch(List<Mail_mail_statistics> mail_mail_statisticss, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Mail_mail_statistics> mail_mail_statisticss, int batchSize) ;
     boolean remove(Integer id) ;
     boolean create(Mail_mail_statistics mail_mail_statistics) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mail_mail_statistics> searchDefault(Mail_mail_statisticsSearchContext context) ;

    /**
     * 根据寄出邮件查询
     */
     Page<Mail_mail_statistics> selectByOdoo_mail_mail(Integer id) ;

    /**
     * 根据群发邮件营销查询
     */
     Page<Mail_mail_statistics> selectByOdoo_mass_mailing_campaign(Integer id) ;

    /**
     * 根据群发邮件查询
     */
     Page<Mail_mail_statistics> selectByOdoo_mass_mailing(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mail_mail_statistics> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mail_mail_statistics> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mail_mail_statistics convert2Domain(cn.ibizlab.odoo.core.client.model.Imail_mail_statistics model ,Mail_mail_statistics domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imail_mail_statistics convert2Model(Mail_mail_statistics domain , cn.ibizlab.odoo.core.client.model.Imail_mail_statistics model);

}
